<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
	use think\facade\Route;


Route::rule('login/yfy' , 'ucenter.Foreign/login')->append(['m'=>'admin']);
// 用户中心
Route::rule('ucenter/login/forum' , 'ucenter.Foreign/login')->append(['m'=>'forum']);
Route::rule('ucenter/login/store' , 'ucenter.Foreign/login')->append(['m'=>'store']);
Route::rule('ucenter/register/store' , 'ucenter.Foreign/register')->append(['m'=>'store']);
Route::rule('ucenter/register/activate' , 'ucenter.Foreign/activate')->append(['m'=>'store']);
Route::rule('ucenter/register/reset' , 'ucenter.Foreign/reset')->append(['m'=>'store']);
Route::rule('ucenter/register/reset_email' , 'ucenter.Foreign/reset_email')->append(['m'=>'store']);
Route::rule('ucenter/logout/store' , 'ucenter.Foreign/logout')->append(['m'=>'store']);
Route::rule('ucenter/logout/admin' , 'ucenter.Foreign/logout')->append(['m'=>'admin']);
Route::rule('ucenter/logout/forum' , 'ucenter.Foreign/logout')->append(['m'=>'forum']);
Route::rule('ucenter/forget/forum' , 'ucenter.Foreign/forget')->append(['m'=>'forum']);
Route::rule('ucenter/forget/store' , 'ucenter.Foreign/forget')->append(['m'=>'store']);
Route::rule('ucenter/email/unsubscribe' , 'ucenter.Email/unsubscribe');
Route::rule('ucenter/admin/:controller/:action', 'ucenter.admin.:controller/:action');
//Route::rule('ucenter/:controller/[:action]', 'ucenter.:controller/:action');

//	Route::rule('api/v2/:controller/:action', 'api.v2.:controller/:action')->allowCrossDomain()
//        ->middleware([\app\common\middleware\AllowOriginMiddleware::class]);;